package com.wyfan.scaffold.common.util;

public enum ResultType {

    SUCCESS(200,"成功"),
    ERROR(500,"失败"),
    NO_PERMISSION(403,"权限不足"),
    NO_DATA(404,"没有数据"),
    ERROR_PARAM(406,"参数错误");


    private Integer status;
    private String message;

    ResultType(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
